<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
<style type="text/css">
	input { 
		border-bottom-width: 2px;
		border-left-width: 2px;
		border-right-width: 2px;
		border-top-width: 2px;
		color: #000000;
		font-family: use-lang-def;
		font-size: 15px;
		font-weight: 400;
		padding: 1px;
		text-align: default;
		text-indent: 0px;
		text-transform: none;
 }
</style>
<script type="text/javascript">
	function submitExcel(){
       var excelFile = $("#excelFile").val();
       //alert(excelFile);
       if(excelFile=='') {alert("请选择需上传的文件!");return false;}
       if(excelFile.indexOf('.csv')==-1){alert("文件格式不正确，请选择正确的csv文件(后缀名.csv)！");return false;}
       $("#fileUpload").submit();
    }	
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<div class="webpart3 contentarea">
			<div class="webpart-head">
				<div class="webpart-head-item">
					初步导入
				</div>
			</div>	
			<div class="webpart-main">
			<div class="webpart-main-item" style="padding-top: 12px;">
			<div class="search">		
			 <form id="fileUpload" action="${path}/productandtrain/lecturer/index/intoed/${saletrantakeid}" enctype="multipart/form-data" method="post">
			      <input id="excelFile" name="file" type="file" class="input-txt"/>
			      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			      <input type="button" value="提交" class="linkbtn2" onclick="submitExcel()"/>
		 	 </form> 	 
					<a href="${path}/productandtrain/lecturer/index/download" target="_blank">模板下载</a>
			</div>
			</div>
			</div>
			<div class="webpart-foot">
				<div class="webpart-foot-item">
				</div>
			</div>
		</div>
   		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>

